<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>应用层协议全景图</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .card-hover {
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            border-color: #667eea;
        }
        
        .protocol-icon {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 24px;
            margin-bottom: 1rem;
        }
        
        .section-title {
            position: relative;
            display: inline-block;
            margin-bottom: 2rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            border-radius: 2px;
        }
        
        .feature-list li {
            position: relative;
            padding-left: 2rem;
            margin-bottom: 0.75rem;
        }
        
        .feature-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            top: 0;
            color: #667eea;
            font-weight: bold;
        }
        
        .mermaid {
            background: white;
            padding: 2rem;
            border-radius: 1rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .drop-cap {
            float: left;
            font-size: 4rem;
            line-height: 1;
            font-weight: 700;
            margin-right: 0.5rem;
            margin-top: -0.2rem;
            color: #667eea;
            font-family: 'Noto Serif SC', serif;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-fadeInUp {
            animation: fadeInUp 0.8s ease-out;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20">
        <div class="container mx-auto px-6 text-center">
            <h1 class="text-5xl md:text-6xl font-bold mb-6 animate-fadeInUp">
                <i class="fas fa-network-wired mr-4"></i>应用层协议全景图
            </h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90 animate-fadeInUp" style="animation-delay: 0.2s;">
                探索OSI模型第七层的核心协议，理解现代网络通信的基石
            </p>
            <div class="flex justify-center space-x-8 animate-fadeInUp" style="animation-delay: 0.4s;">
                <div class="text-center">
                    <i class="fas fa-layer-group text-4xl mb-2"></i>
                    <p class="text-sm">OSI第七层</p>
                </div>
                <div class="text-center">
                    <i class="fas fa-globe text-4xl mb-2"></i>
                    <p class="text-sm">9大核心协议</p>
                </div>
                <div class="text-center">
                    <i class="fas fa-users text-4xl mb-2"></i>
                    <p class="text-sm">直接服务用户</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Introduction -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-6 max-w-4xl">
            <p class="text-lg leading-relaxed text-gray-700">
                <span class="drop-cap">应</span>用层是OSI模型中的第七层，也是TCP/IP模型中的最高层，负责处理特定应用程序的通信需求。应用层的协议直接与用户交互，提供各种服务以支持不同的应用程序。这一层定义了各种网络服务和应用程序的通信规则，使得不同系统间的数据交换成为可能。
            </p>
        </div>
    </section>

    <!-- Protocol Visualization -->
    <section class="py-16 bg-gray-50">
        <div class="container mx-auto px-6">
            <h2 class="section-title text-3xl font-bold text-gray-800 mb-8">协议关系图谱</h2>
            <div class="mermaid">
                graph TB
                    A[应用层协议] --> B[Web服务]
                    A --> C[文件传输]
                    A --> D[邮件服务]
                    A --> E[远程管理]
                    A --> F[网络服务]
                    
                    B --> B1[HTTP]
                    B --> B2[HTTPS]
                    
                    C --> C1[FTP]
                    
                    D --> D1[SMTP]
                    D --> D2[IMAP]
                    D --> D3[POP3]
                    
                    E --> E1[Telnet]
                    E --> E2[SSH]
                    
                    F --> F1[DNS]
                    F --> F2[DHCP]
                    F --> F3[SNMP]
                    
                    style A fill:#667eea,stroke:#764ba2,stroke-width:3px,color:#fff
                    style B fill:#48bb78,stroke:#38a169,stroke-width:2px,color:#fff
                    style C fill:#ed8936,stroke:#dd6b20,stroke-width:2px,color:#fff
                    style D fill:#4299e1,stroke:#3182ce,stroke-width:2px,color:#fff
                    style E fill:#ed64a6,stroke:#d53f8c,stroke-width:2px,color:#fff
                    style F fill:#9f7aea,stroke:#805ad5,stroke-width:2px,color:#fff
            </div>
        </div>
    </section>

    <!-- Protocol Cards -->
    <section class="py-16">
        <div class="container mx-auto px-6">
            <h2 class="section-title text-3xl font-bold text-gray-800 mb-12">核心协议详解</h2>
            
            <!-- HTTP & HTTPS -->
            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <div class="bg-white rounded-xl p-8 card-hover">
                    <div class="protocol-icon">
                        <i class="fas fa-globe"></i>
                    </div>
                    <h3 class="text-2xl font-bold text-gray-800 mb-4">HTTP <span class="text-sm font-normal text-gray-600">超文本传输协议</span></h3>
                    <p class="text-gray-600 mb-6">HTTP是万维网的基础协议，定义了浏览器和Web服务器之间的通信规则。它采用请求/响应模式，支持多种内容类型的传输。</p>
                    <ul class="feature-list text-gray-700">
                        <li><strong>无状态性：</strong>每次请求独立，无需存储先前的请求信息</li>
                        <li><strong>灵活性：</strong>支持HTML、JSON、XML等多种内容类型</li>
                        <li><strong>扩展性：</strong>通过状态码和头部字段进行扩展控制</li>
                    </ul>
                </div>
                
                <div class="bg-white rounded-xl p-8 card-hover">
                    <div class="protocol-icon" style="background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);">
                        <i class="fas fa-lock"></i>
                    </div>
                    <h3 class="text-2xl font-bold text-gray-800 mb-4">HTTPS <span class="text-sm font-normal text-gray-600">安全超文本传输协议</span></h3>
                    <p class="text-gray-600 mb-6">HTTPS是HTTP的安全版本，通过TLS/SSL加密确保数据传输安全。广泛应用于电子商务、网银等需要保护敏感信息的场景。</p>
                    <ul class="feature-list text-gray-700">
                        <li><strong>数据加密：</strong>使用SSL/TLS加密，确保传输安全</li>
                        <li><strong>身份验证：</strong>确保连接到预期的服务器</li>
                        <li><strong>数据完整性：</strong>防止数据在传输中被篡改</li>
                    </ul>
                </div>
            </div>

            <!-- FTP & DNS -->
            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <div class="bg-white rounded-xl p-8 card-hover">
                    <div class="protocol-icon" style="background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);">
                        <i class="fas fa-folder-open"></i>
                    </div>
                    <h3 class="text-2xl font-bold text-gray-800 mb-4">FTP <span class="text-sm font-normal text-gray-600">文件传输协议</span></h3>
                    <p class="text-gray-600 mb-6">FTP专门用于在网络上进行文件传输，提供文件的上传、下载、管理等功能，适合大量文件传输场景。</p>
                    <ul class="feature-list text-gray-700">
                        <li><strong>文件操作：</strong>支持上传、下载、重命名、删除等操作</li>
                        <li><strong>双模式：</strong>主动模式和被动模式适应不同网络环境</li>
                        <li><strong>安全扩展：</strong>FTPS和SFTP提供加密保护</li>
                    </ul>
                </div>
                
                <div class="bg-white rounded-xl p-8 card-hover">
                    <div class="protocol-icon" style="background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);">
                        <i class="fas fa-sitemap"></i>
                    </div>
                    <h3 class="text-2xl font-bold text-gray-800 mb-4">DNS <span class="text-sm font-normal text-gray-600">域名系统</span></h3>
                    <p class="text-gray-600 mb-6">DNS是互联网的"电话簿"，将易记的域名转换为IP地址，是几乎所有网络应用的基础服务。</p>
                    <ul class="feature-list text-gray-700">
                        <li><strong>分布式架构：</strong>分层域名空间实现分布式管理</li>
                        <li><strong>高可用性：</strong>主备方式和缓存机制提高效率</li>
                        <li><strong>可扩展性：</strong>轻松添加新域名和子域名</li>
                    </ul>
                </div>
            </div>

            <!-- Email Protocols -->
            <div class="bg-gray-50 rounded-xl p-8 mb-12">
                <h3 class="text-2xl font-bold text-gray-800 mb-6"><i class="fas fa-envelope text-blue-500 mr-3"></i>邮件服务协议</h3>
                <div class="grid md:grid-cols-3 gap-6">
                    <div class="bg-white rounded-lg p-6">
                        <h4 class="text-xl font-semibold text-gray-800 mb-3">SMTP</h4>
                        <p class="text-sm text-gray-600 mb-3">简单邮件传输协议</p>
                        <ul class="feature-list text-gray-700 text-sm">
                            <li>用于发送邮件</li>
                            <li>推送模式工作</li>
                            <li>支持邮件队列</li>
                        </ul>
                    </div>
                    <div class="bg-white rounded-lg p-6">
                        <h4 class="text-xl font-semibold text-gray-800 mb-3">IMAP</h4>
                        <p class="text-sm text-gray-600 mb-3">互联网消息访问协议</p>
                        <ul class="feature-list text-gray-700 text-sm">
                            <li>多客户端同步</li>
                            <li>服务器端管理</li>
                            <li>支持文件夹操作</li>
                        </ul>
                    </div>
                    <div class="bg-white rounded-lg p-6">
                        <h4 class="text-xl font-semibold text-gray-800 mb-3">P